<template>
  <div>
    <el-tag v-if="value" :type="value.cssClass" :size="size">
      {{ value.label }}
    </el-tag>
  </div>
</template>

<script>
import { findDicData } from "@/utils/ruoyi";
export default {
  name: "DicStausTag",
  props: {
    options: {
      type: Array,
      default: [],
    },
    staus: [Number, String],
    size: { type: String, default: "" }
  },
  computed: {
    value() {
      return findDicData(this.options, this.staus)
    },
  },
};
</script>
<style scoped>
</style>